<?PHP
class Service extends Resource {

	public function __construct($service) {
		// Cut off trailing /'s
		$service = preg_replace('/\/$/','',$service);

		// Redirect / URI's to the service help page
		if($service == '')
			$service = TeeWee::$CONFIG->SERVICE_DEFAULT;

		$folder	= TeeWee::$CONFIG->SERVICE_DIR.'/'.$service;
		$file		= TeeWee::$CONFIG->SERVICE_START;
		parent::__construct($folder,$file);
		$this->is_service = true;
	}

}
?>
